package metamodel;

import java.io.StreamTokenizer;

import java.io.Reader;
import java.io.IOException;

/**
 * User: felix
 * Date: 17.06.2005
 */
public class DataParser {
    StreamTokenizer tokenizer;
    public static final int STRING_LITERAL = 34;
    public static final int IDENTIFIER     = StreamTokenizer.TT_WORD;
    public static final int EOF            = StreamTokenizer.TT_EOF;

    public DataParser(ClassNode classNode,Reader reader) throws IOException {
        tokenizer=new StreamTokenizer(reader);
        int next;
        while ( (next=tokenizer.nextToken()) !=StreamTokenizer.TT_EOF){
            System.out.println(next+": "+tokenizer.sval);

        }
    }


}
